package org.jzs.mybaseapp;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import org.jzs.mybaseapp.common.utils.AppLog;
import org.jzs.mybaseapp.section.home.GlideActivity;
import org.jzs.mybaseapp.section.home.PermissionActivity;
import org.jzs.mybaseapp.section.home.PhotoActivity;
import org.jzs.mybaseapp.section.home.RetrofitActivity;
import org.jzs.mybaseapp.section.home.costomview.ExpandTabActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author Jzs created 2017/8/2
 */

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        AppLog.e(MyApplaciton.getInstance().getCacheDir() + "");
    }

    @OnClick({R.id.btn_retrofit, R.id.btn_glide, R.id.btn_expandtab, R.id.btn_permission, R.id.btn_waterpic})
    void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_retrofit:
                startActivity(new Intent(MainActivity.this, RetrofitActivity.class));
                break;
            case R.id.btn_glide:
                startActivity(new Intent(MainActivity.this, GlideActivity.class));
                break;
            case R.id.btn_expandtab:
                startActivity(new Intent(MainActivity.this, ExpandTabActivity.class));
                break;
            case R.id.btn_permission:
                startActivity(new Intent(MainActivity.this, PermissionActivity.class));
                break;
            case R.id.btn_waterpic:
                startActivity(new Intent(MainActivity.this, PhotoActivity.class));
                break;

            default:

                break;
        }
    }

}
